import Vue from 'vue';
import Router from 'vue-router';


import Login from '../pages/Login/Login.vue'; // 登陆

// 动态加载
const Report = () => import('../pages/Report/Report.vue');// 行情线报
const Dynamics = () => import('../pages/Dynamics/Dynamics.vue');// 关注动态
const Shop = () => import('../pages/Shop/Shop');// 购码商城
const Profile = () => import('../pages/Profile/Profile');// 我的
const Focustore = () => import('../pages/Focustore/Focustore')// 关注店铺

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/report',
      name: 'Report',
      component: Report,
      meta: {
        showFouter: true
      }
    },
    {
      path: '/dynamics',
      name: 'Dynamics',
      component: Dynamics,
      meta: {
        showFouter: true
      }
    },
    {
      path: '/shop',
      name: 'Shop',
      component: Shop,
      meta: {
        showFouter: true
      }
    },
    {
      path: '/profile',
      name: 'Profile',
      component: Profile,
      meta: {
        showFouter: true
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    // 关注店铺
    {
      path: '/focustore',
      name: 'Focustore',
      component: Focustore
    },
    {
      path: '/',
      redirect: '/report'
    }
    // {
    //   path:'*',
    //   name:'Not404',
    //   component:NotFoundComponent
    // }
  ]
});
